import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {MemberListComponent} from './member-list/member-list.component';
import {MemberDetailComponent} from './member-detail/member-detail.component';
import {MemberAddComponent} from './member-add/member-add.component';

export const routes: Routes = [
  {
    path: 'member-list',
    component: MemberListComponent,
    children: []
  },
  {
    path: 'member-detail/:id',
    component: MemberDetailComponent,
    children: []
  },
  {
    path: 'member-add',
    component: MemberAddComponent,
    children: []
  }
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
